/**
 * @Title: updateDrugStore_service.js
 * @Description: TODO
 * Copyright: Copyright (c) 2014
 * Company:中国平安
 *
 * @Project HIMS-FWA
 * @date 2014年10月27日 下午4:43:38
 * @version V1.0
 */
;
(function(){
    'use strict';

    var app = angular.module('fwa.services');
    app.service('UpdateDrugStoreService',['$http','BaseURL', function($http, baseUrl){

        var debug = false;
        var serv = this;

        /**
         * 根据id加载对应的诚信单位考评详情
         */
        serv.loadIntgrityEvalInfo = function(parameter){
            return $http({
                method: "get",
                url:baseUrl+'drugStoreDetail/loadIntgrityEvalInfo.do',
                params:parameter
            });
        }
        /**
         * 根据id加载对应的诚信类别考评详情
         */
        serv.loadIntgrityEvalTypeInfo = function(parameter){
            return $http({
                method: "get",
                url:baseUrl+'drugStoreDetail/loadIntgrityEvalTypeInfo.do',
                params:parameter
            });
        }
        /**
         * 根据id加载对应的诚信考评详情
         */
        serv.loadIntgrityEvalDetailInfo = function(parameter){
            return $http({
                method: "get",
                url:baseUrl+'drugStoreDetail/loadIntgrityEvalDetailInfo.do',
                params:parameter
            });
        }
        /**
         * 根据事件编码加载事件处理
         */
        serv.saveIntgrityEvalInfo = function(parameter){
            return $http.post(baseUrl + 'drugStoreDetail/saveIntgrityEvalInfo.do',parameter);
        }
        /**
         * 根据事件编码加载事件处理
         */
        serv.approvementAudits = function(parameter){
            return $http({
                method: "POST",
                url:baseUrl+'auditOpinion/approvementAudits.do',
                params:parameter
            });
        }
        /**
         * 诚信分析岗的撤销事件
         */
        serv.cancelOperationReview = function(code){
			 return $http({
                 url:baseUrl + 'orgReview/cancelMedialIntegrity.do',
                 method:'GET',
                 params:code
             });
		}
        /**
         * 诚信审核岗的撤销事件
         */
        serv.cancelOperationApprove = function(code){
			 return $http({
                 url:baseUrl + 'orgApprove/cancelMedialIntegrityApprove.do',
                 method:'GET',
                 params:code
             });
		}
    }]);

})();
